<html>
<head>
        <script type="text/javascript" src="../js/jquery-1.5.2.js"></script>
		<script type="text/javascript" src="../js/jquery-ui-1.8.14.custom.min.js"></script>
        <script type='text/javascript' src='../js/jquery.autocomplete.js'></script>
        <script type="text/javascript" src="../js/jquery.validate.js"></script>
        <script type='text/javascript' src='../js/funciones_js.js'></script>
		<link type="text/css" href="../css/start/jquery-ui-1.8.14.custom.css" rel="Stylesheet" />
		<!--<link type="text/css" href="../css/demos.css" rel="Stylesheet" />-->
		<!--<link rel="stylesheet" type="text/css" href="../css/thickbox.css" />-->
        <link rel="stylesheet" type="text/css" href="../css/plantilla.css" />
		<link rel="stylesheet" type="text/css" href="../css/jquery.autocomplete.css" />
		<link rel="stylesheet" type="text/css" href="../css/menu.css" />
</head>
<body>
<?php
include_once('filtro_cabecera.php');
include_once "../funciones/funciones_php.php";

$chofer = trim($_REQUEST['empleado']);
$ruta = trim($_REQUEST['ruta']);

conectar();
$pg = sprintf("UPDATE orden_flete
               SET id_empleado_retiro = '%d'
               WHERE id_orden_flete = '%d'",pg_escape_string($chofer),pg_escape_string($orden_flete));
$conectar = pg_query($pg) or die ("ERROR");

?>
<script>
    alerta("Chofer asignado correctamente","Aviso");
</script>
<script>window.close();window.opener.location.reload();</script>
</body>
</html>

